import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/order_submit_entity.dart';

OrderSubmitEntity $OrderSubmitEntityFromJson(Map<String, dynamic> json) {
	final OrderSubmitEntity orderSubmitEntity = OrderSubmitEntity();
	final int? commodityCount = jsonConvert.convert<int>(json['commodityCount']);
	if (commodityCount != null) {
		orderSubmitEntity.commodityCount = commodityCount;
	}
	final int? commodityId = jsonConvert.convert<int>(json['commodityId']);
	if (commodityId != null) {
		orderSubmitEntity.commodityId = commodityId;
	}
	final double? orderActualTotal = jsonConvert.convert<double>(json['orderActualTotal']);
	if (orderActualTotal != null) {
		orderSubmitEntity.orderActualTotal = orderActualTotal;
	}
	final int? orderAddressId = jsonConvert.convert<int>(json['orderAddressId']);
	if (orderAddressId != null) {
		orderSubmitEntity.orderAddressId = orderAddressId;
	}
	final String? orderLogisticsNo = jsonConvert.convert<String>(json['orderLogisticsNo']);
	if (orderLogisticsNo != null) {
		orderSubmitEntity.orderLogisticsNo = orderLogisticsNo;
	}
	final double? orderPayBatchTotal = jsonConvert.convert<double>(json['orderPayBatchTotal']);
	if (orderPayBatchTotal != null) {
		orderSubmitEntity.orderPayBatchTotal = orderPayBatchTotal;
	}
	final double? orderReduceAmount = jsonConvert.convert<double>(json['orderReduceAmount']);
	if (orderReduceAmount != null) {
		orderSubmitEntity.orderReduceAmount = orderReduceAmount;
	}
	final String? orderRemark = jsonConvert.convert<String>(json['orderRemark']);
	if (orderRemark != null) {
		orderSubmitEntity.orderRemark = orderRemark;
	}
	final int? orderStatus = jsonConvert.convert<int>(json['orderStatus']);
	if (orderStatus != null) {
		orderSubmitEntity.orderStatus = orderStatus;
	}
	final double? orderTotal = jsonConvert.convert<double>(json['orderTotal']);
	if (orderTotal != null) {
		orderSubmitEntity.orderTotal = orderTotal;
	}
	final List<OrderSubmitOrderVo>? orderVos = jsonConvert.convertListNotNull<OrderSubmitOrderVo>(json['orderVos']);
	if (orderVos != null) {
		orderSubmitEntity.orderVos = orderVos;
	}
	final int? skuId = jsonConvert.convert<int>(json['skuId']);
	if (skuId != null) {
		orderSubmitEntity.skuId = skuId;
	}
	final String? skuName = jsonConvert.convert<String>(json['skuName']);
	if (skuName != null) {
		orderSubmitEntity.skuName = skuName;
	}
	final String? commodityName = jsonConvert.convert<String>(json['commodityName']);
	if (commodityName != null) {
		orderSubmitEntity.commodityName = commodityName;
	}
	final String? masterPic = jsonConvert.convert<String>(json['masterPic']);
	if (masterPic != null) {
		orderSubmitEntity.masterPic = masterPic;
	}
	final double? price = jsonConvert.convert<double>(json['price']);
	if (price != null) {
		orderSubmitEntity.price = price;
	}
	final String? orderCouponId = jsonConvert.convert<String>(json['orderCouponId']);
	if (orderCouponId != null) {
		orderSubmitEntity.orderCouponId = orderCouponId;
	}
	final bool? isCoupon = jsonConvert.convert<bool>(json['isCoupon']);
	if (isCoupon != null) {
		orderSubmitEntity.isCoupon = isCoupon;
	}
	return orderSubmitEntity;
}

Map<String, dynamic> $OrderSubmitEntityToJson(OrderSubmitEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['commodityCount'] = entity.commodityCount;
	data['commodityId'] = entity.commodityId;
	data['orderActualTotal'] = entity.orderActualTotal;
	data['orderAddressId'] = entity.orderAddressId;
	data['orderLogisticsNo'] = entity.orderLogisticsNo;
	data['orderPayBatchTotal'] = entity.orderPayBatchTotal;
	data['orderReduceAmount'] = entity.orderReduceAmount;
	data['orderRemark'] = entity.orderRemark;
	data['orderStatus'] = entity.orderStatus;
	data['orderTotal'] = entity.orderTotal;
	data['orderVos'] =  entity.orderVos?.map((v) => v.toJson()).toList();
	data['skuId'] = entity.skuId;
	data['skuName'] = entity.skuName;
	data['commodityName'] = entity.commodityName;
	data['masterPic'] = entity.masterPic;
	data['price'] = entity.price;
	data['orderCouponId'] = entity.orderCouponId;
	data['isCoupon'] = entity.isCoupon;
	return data;
}

OrderSubmitOrderVo $OrderSubmitOrderVoFromJson(Map<String, dynamic> json) {
	final OrderSubmitOrderVo orderSubmitOrderVo = OrderSubmitOrderVo();
	final int? commodityCount = jsonConvert.convert<int>(json['commodityCount']);
	if (commodityCount != null) {
		orderSubmitOrderVo.commodityCount = commodityCount;
	}
	final int? commodityId = jsonConvert.convert<int>(json['commodityId']);
	if (commodityId != null) {
		orderSubmitOrderVo.commodityId = commodityId;
	}
	final double? orderActualTotal = jsonConvert.convert<double>(json['orderActualTotal']);
	if (orderActualTotal != null) {
		orderSubmitOrderVo.orderActualTotal = orderActualTotal;
	}
	final int? orderAddressId = jsonConvert.convert<int>(json['orderAddressId']);
	if (orderAddressId != null) {
		orderSubmitOrderVo.orderAddressId = orderAddressId;
	}
	final String? orderLogisticsNo = jsonConvert.convert<String>(json['orderLogisticsNo']);
	if (orderLogisticsNo != null) {
		orderSubmitOrderVo.orderLogisticsNo = orderLogisticsNo;
	}
	final double? orderPayBatchTotal = jsonConvert.convert<double>(json['orderPayBatchTotal']);
	if (orderPayBatchTotal != null) {
		orderSubmitOrderVo.orderPayBatchTotal = orderPayBatchTotal;
	}
	final double? orderReduceAmount = jsonConvert.convert<double>(json['orderReduceAmount']);
	if (orderReduceAmount != null) {
		orderSubmitOrderVo.orderReduceAmount = orderReduceAmount;
	}
	final String? orderRemark = jsonConvert.convert<String>(json['orderRemark']);
	if (orderRemark != null) {
		orderSubmitOrderVo.orderRemark = orderRemark;
	}
	final int? orderStatus = jsonConvert.convert<int>(json['orderStatus']);
	if (orderStatus != null) {
		orderSubmitOrderVo.orderStatus = orderStatus;
	}
	final double? orderTotal = jsonConvert.convert<double>(json['orderTotal']);
	if (orderTotal != null) {
		orderSubmitOrderVo.orderTotal = orderTotal;
	}
	final int? shopId = jsonConvert.convert<int>(json['shopId']);
	if (shopId != null) {
		orderSubmitOrderVo.shopId = shopId;
	}
	final int? skuId = jsonConvert.convert<int>(json['skuId']);
	if (skuId != null) {
		orderSubmitOrderVo.skuId = skuId;
	}
	final String? skuName = jsonConvert.convert<String>(json['skuName']);
	if (skuName != null) {
		orderSubmitOrderVo.skuName = skuName;
	}
	final String? commodityName = jsonConvert.convert<String>(json['commodityName']);
	if (commodityName != null) {
		orderSubmitOrderVo.commodityName = commodityName;
	}
	final String? masterPic = jsonConvert.convert<String>(json['masterPic']);
	if (masterPic != null) {
		orderSubmitOrderVo.masterPic = masterPic;
	}
	final double? price = jsonConvert.convert<double>(json['price']);
	if (price != null) {
		orderSubmitOrderVo.price = price;
	}
	final String? orderCouponId = jsonConvert.convert<String>(json['orderCouponId']);
	if (orderCouponId != null) {
		orderSubmitOrderVo.orderCouponId = orderCouponId;
	}
	final bool? isCoupon = jsonConvert.convert<bool>(json['isCoupon']);
	if (isCoupon != null) {
		orderSubmitOrderVo.isCoupon = isCoupon;
	}
	return orderSubmitOrderVo;
}

Map<String, dynamic> $OrderSubmitOrderVoToJson(OrderSubmitOrderVo entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['commodityCount'] = entity.commodityCount;
	data['commodityId'] = entity.commodityId;
	data['orderActualTotal'] = entity.orderActualTotal;
	data['orderAddressId'] = entity.orderAddressId;
	data['orderLogisticsNo'] = entity.orderLogisticsNo;
	data['orderPayBatchTotal'] = entity.orderPayBatchTotal;
	data['orderReduceAmount'] = entity.orderReduceAmount;
	data['orderRemark'] = entity.orderRemark;
	data['orderStatus'] = entity.orderStatus;
	data['orderTotal'] = entity.orderTotal;
	data['shopId'] = entity.shopId;
	data['skuId'] = entity.skuId;
	data['skuName'] = entity.skuName;
	data['commodityName'] = entity.commodityName;
	data['masterPic'] = entity.masterPic;
	data['price'] = entity.price;
	data['orderCouponId'] = entity.orderCouponId;
	data['isCoupon'] = entity.isCoupon;
	return data;
}